﻿using System;
using System.Collections.Generic;

namespace Bilibili.Model.Common
{
    public sealed class VersionInfo
    {
        public VersionInfo() { }
        public VersionInfo(Version version)
        {
            Build = version.Build;
            Major = version.Major;
            Minor = version.Minor;
        }
        public VersionInfo(int major, int minor, int build)
        {
            Major = major;
            Minor = minor;
            Build = build;
        }
        public int Major { get; set; }
        public int Minor { get; set; }
        public int Build { get; set; }
        public string Message { get; set; }
        public List<VersionUri> Urls { get; set; }
        public int VersionTag => $"{Major}{Minor}{Build}".ToInt32();
    }
    public sealed class VersionUri
    {
        public string Ext { get; set; }
        public string Platform { get; set; }
        public string Url { get; set; }
        public string Pwd { get; set; }
    }
}